package com.yunchao.bank.business.data.mapper

import com.yunchao.bank.business.data.model.PackIssueInfoApiModel
import com.yunchao.bank.business.domain.model.BusinessPackModel


internal fun PackIssueInfoApiModel.toDomainModel() = BusinessPackModel(
    sackNo = sackNo.orEmpty(),
    voucherTypeID = voucherTypeID.orEmpty(),
    voucherTypeName = voucherTypeName.orEmpty(),
    value = value.orEmpty(),
    paperTypeID = paperTypeID.orEmpty(),
    paperTypeName = paperTypeName.orEmpty(),
    bundles = bundles.orEmpty(),
    tie = tie.orEmpty(),
    sackMoney = sackMoney.orEmpty(),
    oprDT = oprDT.orEmpty(),
    organID = organID.orEmpty(),
    organName = organName.orEmpty(),
    mustOutFlag = mustOutFlag.orEmpty(),
    sstackCode = sstackCode.orEmpty(),
    sstackName = sstackName.orEmpty(),
    isCheck = isCheck.orEmpty(),
    isUnPacket = isUnPacket.orEmpty(),
    totalMoney = totalMoney.orEmpty(),
    haveBoxInfo = haveBoxInfo.orEmpty(),
    transNo = transNo.orEmpty()
)